//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Diagnostics;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class ContinueRecord : BiffRecord
    {
        private byte[] _buffer;

        public byte[] Buffer
        {
            get { return _buffer; }
            set { _buffer = value; }
        }

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.Continue; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            context.Write(_buffer);

        }

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            _buffer = context.ReadBytes(length);
        }

    }
}